/**
 * 错误的示范：
 */

import gulp from 'gulp'

const { series, parallel } = gulp

const clean = function (cb) {
  console.log('执行清除动作');
  // body omitted
  cb();
};

/**


// 串行
const css = series(clean, function (cb) {
  // body omitted
  console.log('css 编译');
  cb();
});

// 串行
const javascript = series(clean, function (cb) {
  // body omitted
  console.log('js编译');
  cb();
});

// 并行
export const build = parallel(css, javascript);
 *
 */

// 改进

const css = (cb) => {
  console.log('css 编译');
  cb();
}

const javascript = (cb) => {
  console.log('javascript 编译');
  cb();
}

export const build = series(clean, parallel(css, javascript))